<?php
	/**
	 * 获取抽奖开关
	 */
    class OpenInfo extends APIBase {
		
		public $tag = "OpenInfo";
		public $isLogin = false;
		
		public function before() {
			return true;
		}

		public function logic() {
			if (!isset($this->param['vercode'])) {
				$vercode = 0;
			}else{
				$vercode = (int) $this->param['vercode'];
			}

			if (!isset($this->param['ua'])) {
				$ua = 0;
			}else{
				$ua = $this->param['ua'];
			}

			if (!isset($this->param['imsi'])) {
				$imsi = 0;
			}else{
				$imsi = $this->param['imsi'];
			}

			if (!isset($this->param['imei'])) {
				$imei = 0;
			}else{
				$imei = $this->param['imei'];
			}

			if (!isset($this->param['cid'])) {
				$cid = 0;
			}else{
				$cid = $this->param['cid'];
			}

			if (!isset($this->param['channel'])) {
				$channel = 0;
			}else{
				$channel = $this->param['channel'];
			}

			$openinfo = array();

			$openinfo['lottery_isopen'] = (int) Game::$lottery_isopen;
			$openinfo['slotmachine_isopen'] = (int) Game::$slotmachine_isopen;
			$this->returnData($openinfo);

		}
		
    	public function after() {
		}
    }
?>
